body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}
.container {
    display: flex;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    /*border-radius: 8px;*/
    overflow: hidden;
    background: rgb(245,245,245);
}
.chat-container {
    flex-grow: 1;
}
.chat-messages {
    padding: 1% 5%;
    height: 73%;
    overflow-y: auto;
}
.my-message, .my-username {
    text-align: right;
    float: right;
    clear: both;
    font-size: 25px;
}
.other-message, .other-username {
    text-align: left;
    float: left;
    clear: both;
    font-size: 25px;
}
.username {
    display: inline-block;
    margin: 0 5px;
}
.message-text {
    display: inline-block;
    margin-bottom: 5px;
    font-size: 20px;
    padding: 6px 12px;
    border-radius: 10px;
    word-wrap: break-word; /* 允许在单词中间换行 */
    max-width: 140px; /* 设置最大宽度，超过7个字后换行 */
    text-align: left; /* 文字靠左对齐 */
}
.message {
    width: 100%;
    overflow: hidden;
    font-size: 20px;
}
.my-image-message img {
    max-width: 80%;
    max-height: 80px;
    text-align: right;
    float: right;
    padding-top: 8px;
    margin-bottom: 5px;
}
.other-image-message img {
    max-width: 80%;
    max-height: 80px;
    text-align: left;
    float: left;
    border-radius: 10px;
    padding-top: 8px;
    margin-bottom: 5px;
}
.message-in {
    height: 30%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background: white;
}
.message-in input[type="text"] {
    margin-top: 3%;
    width: 100%;
    height: 40px;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    border: none;
}
.message-in button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.send-button {
    background-color: #4CAF50;
    color: white;
    float: right;
    margin-right: 1%;
}
.image-button {
    margin-left: 1%;
    background-color: white;
    width: 40px;
    height: 27px;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    float: left;
}
#image-input {
    display: none;
}
.image-button:hover {
    background: #0056b3;
}

.message-text-w{
    background: white;
}

.message-text-gy{
    background: rgb(149,236,105);
}